package net.neptech.model.workflow;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @Author Saya
 * @Date 2025/8/22 11:05
 * @Description TODO
 **/
@Data
@Entity
@Table(name = "ins_user_copy")
@TableName("ins_user_copy")
public class InstanceUserCopy {
    @TableField("id")
    @Id
    @TableId

    @GeneratedValue(strategy = GenerationType.UUID)
    private String id;

    @TableField("start_user_id")
    private String startUserId;

    @TableField("flow_id")
    private String flowId;

    @TableField("process_instance_id")
    private String processInstanceId;

    @TableField("group_id")
    private String groupId;

    @TableField("group_name")
    private String groupName;

    @TableField("process_name")
    private String processName;

    @TableField("user_id")
    private String userId;

    @TableField("deleted")
    @Column(name = "deleted")
    private Boolean deleted;

    @TableField("create_time")
    @Column(name = "create_time")
    private Date createTime;

    @TableField("update_time")
    @Column(name = "update_time")
    private Date updateTime;
}